import request from '@/utils/request'

// 查询商品查看累加列表
export function listGoodClick(query) {
  return request({
    url: '/system/goodClick/list',
    method: 'get',
    params: query
  })
}

// 查询商品查看累加详细
export function getGoodClick(goodId) {
  return request({
    url: '/system/goodClick/' + goodId,
    method: 'get'
  })
}

// 新增商品查看累加
export function addGoodClick(data) {
  return request({
    url: '/system/goodClick',
    method: 'post',
    data: data
  })
}

// 修改商品查看累加
export function updateGoodClick(data) {
  return request({
    url: '/system/goodClick',
    method: 'put',
    data: data
  })
}

// 删除商品查看累加
export function delGoodClick(goodId) {
  return request({
    url: '/system/goodClick/' + goodId,
    method: 'delete'
  })
}
